<?php require 'config/Config.php'; ?>
<?php
        $type = Utils::getValGet('type');
        $ret = '';
        $id = Utils::getValGet('id');
        if($type == 'country'){
            $dal = new DALCountry();
            if($id != '-1'){
                $ret = $dal->loadList();
            }
        }else if($type == 'league'){
            $dal = new DALLeague();
            $ret = $dal->getLeaguesClosing();
        }else if($type == 'setting'){
            $dal = new DALConfig();
            $ret = $dal->getConfigSetting();
        }else if($type == 'bet_rules'){
            $dal = new DALConfig();
            $ret = $dal->getBetRules();
        }
        
        echo json_encode($ret, 256);
?>
